package com.pkk.cloud.support.admin.dto.req.user;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 用户添加请求类
 * @author: peikunkun
 * @create: 2020-04-01 21:57
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OauthUserAddReqDto implements Serializable {

  private static final long serialVersionUID = -6038101866677937291L;


  /**
   * 用户账号
   */
  @NotBlank(message = "用户账号不能为空")
  private String uname;

  /**
   * 昵称
   */
  @NotBlank(message = "用户昵称不能为空")
  private String nickname;

  /**
   * 邮箱
   */
  @NotBlank(message = "用户邮箱不能为空")
  private String email;

  /**
   * 用户密码
   */
  @NotBlank(message = "用户密码不能为空")
  private String pwd;

  /**
   * 头像地址
   */
  private String headImage;

  /**
   * 是否启用1:启用,0删除
   */
  @NotNull(message = "请选择是否启用")
  private Boolean isEnable;


  /**
   * 角色信息
   */
  private List<Long> roles;
}
